﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Security.AccessControl;
using System.Text;
using System.Threading.Tasks;
using AssetsSys.Model;
using Microsoft.Build.Framework;

namespace AssetsSys.model
{
    /// <summary>
    /// 用户表
    /// </summary>
    public class User:BaseEntity
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        [Required]
        public string Email { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required]
        public string PassWord { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string PhoneNum { get; set; }
        /// <summary>
        /// 是否停用
        /// </summary>
        public bool Stop { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        [ForeignKey(nameof(Department))]
        public Guid DepartmentId { get; set; }
        public Department Department { get; set; }


    }
}
